package com.ljf.tijian.controller;

import com.ljf.tijian.dto.ApiResponse;
import com.ljf.tijian.pojo.Orders;
import com.ljf.tijian.service.CheckItemDetailedService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class CheckmealDetailedController {

    @Autowired
    CheckItemDetailedService checkItemDetailedService;

    @RequestMapping("/checkItemDetailedBySmId")
    public ApiResponse checkItemDetailedBySmId(@RequestBody Orders orders){
        System.out.println(orders.getSmId());
        return  checkItemDetailedService.getCheckItemdetailedDto(orders.getSmId());
    }

}
